package cn.itrip.auth.service;

import cn.itrip.beans.pojo.ItripUser;

public interface UserService{
    //邮箱注册
    public void mailCreateUser(ItripUser user) throws Exception;
    //邮箱激活（mail收件人邮箱  activationCode激活码）
    public boolean mailActivate(String mail,String activationCode)throws Exception;
    //根据usercode查询user
    public ItripUser findUserByUserCode(String userCode) throws Exception;

    //手机注册
    public void phoneCreateUser(ItripUser user) throws Exception;
    //手机验证
    public boolean phoneValidate(String phoneNum,String code)throws Exception;
    //登录
    public ItripUser login(String userCode,String userPassword) throws Exception;
}
